package zoodemo;
//子类继承的是抽象类必须重写

public class Dog extends Animal{

    public Dog(String name) {
        super(name);
    }
    public void shout(){
        System.out.println("汪汪汪");
    }
}
